package cn.edu.scau.dormitory_management_system.module.examine.service.impl;

import cn.edu.scau.dormitory_management_system.module.examine.dao.FlowDao;
import cn.edu.scau.dormitory_management_system.module.examine.entity.FlowEntity;
import cn.edu.scau.dormitory_management_system.module.examine.service.FlowService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：Vizzk
 * @description：TODO
 * @date ：2021/8/5 15:47
 */
@Service("flowService")
public class FlowServiceImpl extends ServiceImpl<FlowDao, FlowEntity> implements FlowService {
    @Override
    public boolean insertFlow(FlowEntity flow) {
        return this.baseMapper.insert(flow)>0;
    }

    @Override
    public List<FlowEntity> listFlow() {
        return this.baseMapper.selectList(null);
    }
}
